{if $lbad_list}
<div class="addWrap">
  <div class="swipe" id="mySwipe">
    <div class="swipe-wrap">
    {loop $lbad_list $id $one}
      <div><a href="{$one['ad_link']}"><img style="width:100%" class="img-responsive" src="{$one['ad_img']}" alt="{$one['ad_text']}"/></a></div>
      {/loop}
    </div>
  </div>
  <ul id="position">
   {loop $lbad_list $id $one}
    <li {if $id==0}class="cur" {/if}></li>
    {/loop}
  </ul>
</div>
<!--{~ui('loader')->js('swipe.min')}-->
<script type="text/javascript">
var bullets = document.getElementById('position').getElementsByTagName('li');
var banner = Swipe(document.getElementById('mySwipe'), {
	auto: 4000,
	continuous: true,
	disableScroll:false,
	callback: function(pos) {
		var i = bullets.length;
		while (i--) {
		  bullets[i].className = ' ';
		}
		bullets[pos].className = 'cur';
	}
});
</script>

{/if}